package com.itxuhang.mvc.adapter;

import com.itxuhang.mvc.model.ModelAndView;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface HandlerAdapter{

    //适配处理类
    boolean supports(Object handler);

    // 调用处理器的功能
    ModelAndView handleRequest(Object handler, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;
}
